C# |
---|
public Boolean IsComment(String text) |
C# |
---|
using LJCNetCommon; var tokenizer = new CodeTokenizer(); string text = " string text = " // This is a comment."; tokenizer.SetTokens(text); short tokenIndex = 0; string token = tokenizer.GetToken(tokenIndex); bool isComment = tokenizer.IsComment(token); // Value isComment is true. |